import request from '@/utils/request'
export function listCategory(query) {
  return request({
    url: '/admin/category/getAllPrimaryCategories',
    method: 'get',
    params: query
  })
}

export function saveCategory(param) {
  return request({
    url: '/admin/category/save',
    method: 'post',
    data: param
  })
}
export function deleteCategory(param) {
  return request({
    url: '/admin/category/delete',
    method: 'post',
    data: param
  })
}
